<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>Hello JSP</title>
</head>
<body>

<!-- 输出 message 属性 -->
<h1>${requestScope.message}</h1>
<jsp:useBean  class="java.util.Date" id="now" scope="request"/>
<p>当前时间：<fmt:formatDate value="${now}" pattern="yyyy-MM-dd HH:mm:ss" /></p>
</body>
</html>


